<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/test', ['uses'=>'HomeController@test']);

Route::group(['namespace' => 'Home', 'middleware' => [], ], function ($router) {
    $router->get('/', ['uses'=>'IndexController@index']);
    $router->get('/map', ['uses'=>'IndexController@map']);

    //  资讯列表
    $router->get('/news/list/{one_cate_id}/{two_cate_id?}', ['uses'=>'DocumentController@newsList']);
    $router->get('/news/detail/{id}', ['uses'=>'DocumentController@newsDetail']);

    //  图集列表
    $router->get('/photo/list/{one_cate_id}/{two_cate_id?}', ['uses'=>'DocumentController@photoList']);
    $router->get('/photo/detail/{id}', ['uses'=>'DocumentController@photoDetail']);

    //  单网页列表
    $router->get('/page/list/{one_cate_id}/{two_cate_id?}', ['uses'=>'DocumentController@pageList']);
    $router->get('/page/detail/{id}', ['uses'=>'DocumentController@pageDetail']);

    //  搜索列表
    $router->get('search', ['uses'=>'DocumentController@search']);
});


/**
Route::get('/', function () {
//    echo 'Hello World!';
    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
*/